import pytest
from common.logger import logFile
from common.utils import rootDir
from common.utils import load_yaml

log = logFile()


@pytest.fixture(scope="function", name='tsname')
def test_get_case_name(request):
    log.info(30 * "*" + f"开始执行用例" + 30 * "*" + "\n")

    yield

    log.info(30 * "*" + "用例执行结束" + 30 * "*" + "\n")



# @pytest.fixture(scope="class", autouse=True)
# def save_file_end(request):
#     # print("打开工作表")
#     op_exc = OperateExcel()
#
#     yield save_file_end
#     op_exc.save_file()




# class TestFixtureName:
#
#
#     def test_01(self,csname):
#
#        print(csname['name'])
